<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    
</head>
<body>
    

    <!-- <div id="root" :style="{fontSize: fon+'px'}">{{name}}</div> -->
    <div id="root" :style="styleobj" v-show="true">{{name}}</div>
    <!-- <div id="root" :style="[sttyleobj1,styleobj2]">{{name}}</div> -->
    <!-- <div id="root" :style="[stylearrrr]">{{name}}</div> -->

</body>

<script>
    new Vue({
        el:"#root",
        data:{
            name:'尚硅谷',
            styleobj:{
                fontSize:"40px",
            },
        }
    })
</script>
</html>